<template>
    <div>
        登录页面
        <button @click="login">登录</button>
    </div>
</template>

<script>
export default {
    name:'LoginView',
    methods:{
        login(){
            localStorage.setItem('login',true)
        }
    }
}
</script>